package org.oimwrapper.connectors.exceptions;

/**
 * This exception is to be thrown if the connection to an OIM system is remote, rather than 
 * local.
 */
public class OIMInsufficientResponseCountException extends Exception {

	/**
	 * The minimum number of responses required by OIM.
	 */
	protected int minimum;
	
	/**
	 * Basic constructor.
	 * 
	 * @param Minimum The minimum number of responses required by OIM.
	 */
	public OIMInsufficientResponseCountException(int Minimum) {
		super("The number of responses provided is below the system minimum value " + Integer.toString(Minimum));
	}
	
	/**
	 * Gets the minimum number of responses required by OIM.
	 * 
	 * @return The minimum number of responses required by OIM.
	 */
	public int getMinimumRequired() {
		return minimum;
	}
}